package com.xy.generate;

import com.xy.generate.cli.command.CommandExecutor;
import com.xy.generate.util.DynamicGenerator;
import com.xy.generate.util.MainGenerator;

import java.io.File;

public class Main {
    public static void main(String[] args) {
        // static
        //String outputPath = System.getProperty("user.dir");
        //File parentFile = new File(outputPath).getParentFile();
        //File file = new File(parentFile, "xy-generate-demo-project/acm-template");
        //String inputPath = file.getAbsolutePath();
        //StaticGenerate.copyFilesByHutool(inputPath, outputPath);

        // dynamic
        //String outputPath = System.getProperty("user.dir");
        //String inputPath = outputPath + File.separator + "src/main/resources/templates/MainTemplate.java.ftl";
        //String outPath = outputPath + File.separator + "MainTemplate.java";
        //DynamicGenerator.doGenerate(inputPath, outPath, null);

        //main
        //MainGenerator.doGenerate(null);
        //String[] params = new String[]{"generate", "-l", "-a", "-o"};
        //String[] params = new String[]{"list"};
        //command
        CommandExecutor commandExecutor = new CommandExecutor();
        Integer execute = commandExecutor.execute(args);
    }
}